﻿using Microsoft.EntityFrameworkCore;
using Paas.Pioneer.Domain;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Paas.Pioneer.Admin.Core.Domain.Works.LinkFriend
{
    /// <summary>
    /// 作品关联好友
    /// </summary>
    [Table("Works_LinkFriend")]
    [Comment("作品关联好友")]
    [Index(nameof(WorksInfoId), Name = "IDX_WorksInfoId")]
    [Index(nameof(WorksUserId), Name = "IDX_WorksUserId")]
    [Index(nameof(LinkUserId), Name = "IDX_LinkUserId")]
    public class Works_LinkFriendEntity : BaseEntity
    {
        /// <summary>
        /// 作品ID
        /// </summary>
        [Comment("作品ID")]
        [Column("WorksInfoId", TypeName = "char(36)")]
        public Guid WorksInfoId { get; set; }

        /// <summary>
        /// 发布人ID
        /// </summary>
        [Comment("发布人ID")]
        [Column("WorksUserId", TypeName = "char(36)")]
        public Guid WorksUserId { get; set; }

        /// <summary>
        /// 关联用户ID
        /// </summary>
        [Comment("关联用户ID")]
        [Column("LinkUserId", TypeName = "char(36)")]
        public Guid LinkUserId { get; set; }
    }
}
